package yc.star.system.domain.question.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QuestionAddDTO {

    @NotBlank(message = "题目标题不能为空")
    private String title;

    @NotNull(message = "不能为空")
    @Max(value = 3,message = "设置错误")
    @Min(value = 1,message = "设置错误")
    private Integer difficulty;

    @NotNull(message = "不能为空")
    private Long timeLimit;

    @NotNull(message = "不能为空")
    private Long spaceLimit;

    @NotBlank(message = "题目内容不能为空")
    private String content;

    @NotBlank(message = "输入输出示例不能为空")
    private String questionCase;

    @NotBlank(message = "默认代码块不能为空")
    private String defaultCode;

    @NotBlank(message = "main方法不能为空")
    private String mainFuc;

}
